A list of codes for some possible errors when the plugin is running.

Output to the variable zmFtpError


000 = there are no errors, the command (any) was executed correctly;


001 = plugin initialization error (zmFtpCreate); note: very, very unlikely;

555 = user input error (insufficient number of arguments, etc.);

101 = invalid file name or the file is missing from the hard disk;


111 = the command cannot be executed, because data is being transmitted and all commands (except zmFtpAbort and zmFtpDestroy) are blocked, i.e. like"foolproof";
To continue, you first need to stop pumping the file with the zmFtpAbort command.

NOTE: after the file transfer is forcibly stopped, re-authorization may be required, and various (so far) unprocessed error messages about communication with the server may also be sent!


All other errors (for now) will be output to this variable exactly in the form in which they are generated by the plugin debugger.




==========================================

IMPORTANT!!!


You can detect the end of the file transfer by the state of the variable zmFtpTransferResult, i.e. TRUE or FALSE.
At the beginning of each download session (Download or Upload), this variable takes the value FALSE, and at the end of a successful download, it is TRUE.

==========================================